<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class StoreProductReply extends Model
{
    use HasFactory;
    protected $table = 'store_product_reply';
    protected $guarded = [];

    public function goods()
    {
        return $this->belongsTo(StoreProduct::class,'product_id','id');
    }

    public function user()
    {
        return $this->belongsTo(User::class,'uid','uid');
    }
}
